/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.openmath.jome.model;

/**
 *
 * @author Mr.Sam
 */
import java.util.*;
import fr.ove.openmath.jome.model.*;
import fr.ove.openmath.jome.model.events.*;
import fr.ove.openmath.jome.model.evaluation.*;

/**
* @author © 1999 DIRAT Laurent
* @version 2.0  24/06/1999
*/
public abstract class Operator extends FormulaTreeStructure {
    /**
    * The operator name
    */
    private String value;

    /**
    * Returns the name of the operator.
    */
    public String getTheOperator() {
        return value;
    }
    
    /**
    * Sets the name of the operator.
    * @param theOperator the name of the operator.
    */
    public void setTheOperator(String theOperator) {
        value = theOperator;
    }
    
    /**
    * To check is the instance is an operator.
    * @return <CODE>true</CODE> if it is an operator. <CODE>false</CODE> otherwise.
    */
    public boolean isOperator() {
        return true;
    }
    
    // *****************************************
    // Implémentation de l'interface Modifiable
    
    /**
    * Sets the value.
    */
    public void setValue(String value) {
        this.value = value;
    }
    
    /**
    * Returns the value.
    */
    public String getValue() {
        return value;
    }
    
    // *** Fin de l'interface Modifiable ***
    // *************************************
}
